<?php

class Parte extends DataMapper {

	
	var $error_prefix = '<div class="alert alert-danger" role="alert">';
    var $error_suffix = '</div>';
	
	
	
	var $has_many = array("processo");
	
	var $validation = array(
		'nome_parte' => array(
			'label' => 'Nome Parte',
			'rules' => array('required|unique')
		),
		'cpfcnpj' => array(
			'label' => 'CPF ou CNPJ',
			'rules' => array('required|unique')
		)
	);
	
	var $table = 'partes';
	 
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
	
	
	
}

/* End of file parte.php */
/* Location: ./application/models/parte.php */
